//
//  DBextView.m
//  大宝微博
//
//  Created by bao on 16/3/9.
//  Copyright © 2016年 bao. All rights reserved.
//

#import "DBTextView.h"

@implementation DBTextView
//
- (instancetype)initWithFrame:(CGRect)frame
{
    if(self = [super initWithFrame:frame])
    {
        _placeHorderString = @"分享周围的新鲜事......";
    }
    return self;
}


- (void)setPlaceHorderString:(NSString *)placeHorderString
{
    _placeHorderString = placeHorderString;
    [self setNeedsDisplay];
    
}

- (void)drawRect:(CGRect)rect
{
    NSMutableDictionary *dict =  [NSMutableDictionary dictionary];
    [dict setValue:[UIFont systemFontOfSize:16] forKey:NSFontAttributeName];
    [self.placeHorderString drawAtPoint:CGPointMake(0, 6) withAttributes:dict];
}


@end
